//
//  SliderTypeThreezViewController.m
//  SpecialEffectsProject
//
//  Created by 蓓蕾 on 2021/11/4.
//

#import "SliderTypeThreezViewController.h"
#import "TestView.h"
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>

@interface SliderTypeThreezViewController ()<MKMapViewDelegate,CLLocationManagerDelegate>
@property (nonatomic,strong) TestView *vTestView;

@end

@implementation SliderTypeThreezViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor grayColor];
    MKMapView *mapView = [[MKMapView alloc]initWithFrame:self.view.bounds];
    mapView.delegate = self;
    mapView.showsUserLocation = YES;
    mapView.userTrackingMode = MKUserTrackingModeFollowWithHeading;
    mapView.mapType = MKMapTypeStandard;
    [self.view addSubview:mapView];
//    mapView.userLocation
    _vTestView = [[TestView alloc]initWithFrame:CGRectMake(0, kScreenHeight - 100, kScreenWidth, kScreenHeight - 100)];
    _vTestView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:_vTestView];
    
    CLLocationManager *locationManager = [[CLLocationManager alloc] init];
    locationManager.delegate = self;
    locationManager.distanceFilter = 100;
    locationManager.desiredAccuracy = kCLLocationAccuracyBest;
    [locationManager requestAlwaysAuthorization];
    [locationManager startUpdatingLocation];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
